dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.50)
AC_INIT(codria, 0.0.1)
AC_CONFIG_HEADERS(config.in)

AM_INIT_AUTOMAKE

AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET

dnl Initialize automake
AM_INIT_AUTOMAKE

dnl Initialize Libtool
LT_INIT

dnl Check if Libtool is present
dnl Libtool is used for building shared libraries
AC_PROG_LIBTOOL

##########################
# Checking for packages  #
# ########################

PKG_CHECK_MODULES(OGRE, [OGRE >= 1.7])
AC_SUBST(OGRE_CFLAGS)
AC_SUBST(OGRE_LIBS)

PKG_CHECK_MODULES(OIS, [OIS >= .0])
AC_SUBST(OIS_CFLAGS)
AC_SUBST(OIS_LIBS)

##########################

AC_CONFIG_FILES(Makefile
                src/Makefile
                )

AC_OUTPUT

